package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.User;
import com.woniuxy.mapper.UserMapper;
import com.woniuxy.service.UserService;
@Service
public class UserServiceImpl implements UserService{
	@Autowired
 	private UserMapper userMapper;

	@Override
	public List<User> findAllUser() {
		return userMapper.findAllUser();
	}

	@Override
	public List<Integer> findRidByUid(int uid) {
		return userMapper.findRidByUid(uid);
	}
	//根据关键字模糊查询
	@Override
	public List<User>findUserByWords(String words){
		return userMapper.findUserByWords(words);
	}

	@Override
	public String findRnameByRid(int rid) {
		return userMapper.findRnameByRid(rid);
	}

	@Override
	public List<User> findUserByStatus(int status) {
		return userMapper.findUserByStatus(status);
	}

	@Override
	public int insertUser(User user) {
		return 0;
	}

	@Override
	public int changePwd(User user) {
		return userMapper.changePwd(user);
	}

	@Override
	public User findUserByUid(int uid) {
		return userMapper.findUserByUid(uid);
	}

	@Override
	public User findUserByAccount(String account) {
		return userMapper.findUserByAccount(account);
	}

	@Override
	public int delByUid(int uid) {
		return userMapper.delByUid(uid);
	}
	
	
}
